import base from "./base"; // 导入接口域名列表
import axios from "../http"; // 导入http中创建的axios实例
import qs from "qs"; // 根据需求是否导入qs模块
const getOc = {
  //VIP等级
  getOcRatting(params) {
    return axios.post(
      `${base.bd}/admin/vip_rating/lists`,
      qs.stringify(params)
    );
  },
  addOcRatting(params) {
    return axios.post(
      `${base.bd}/admin/vip_rating/saveadd`,
      qs.stringify(params)
    );
  },
  delOcRatting(params) {
    return axios.post(`${base.bd}/admin/vip_rating/del`, qs.stringify(params));
  },
  editOcRatting(params) {
    return axios.post(
      `${base.bd}/admin/vip_rating/saveedit`,
      qs.stringify(params)
    );
  },
  //节点等级
  getNodeRatting(params) {
    return axios.post(
      `${base.bd}/admin/jddj_rating/lists`,
      qs.stringify(params)
    );
  },
  delNodeRatting(params) {
    return axios.post(`${base.bd}/admin/jddj_rating/del`, qs.stringify(params));
  },
  addOcNodeRatting(params) {
    return axios.post(
      `${base.bd}/admin/jddj_rating/saveadd`,
      qs.stringify(params)
    );
  },
  editNodeRatting(params) {
    return axios.post(
      `${base.bd}/admin/jddj_rating/saveedit`,
      qs.stringify(params)
    );
  },
  //见点奖
  getSeePointList(params) {
    return axios.post(
      `${base.bd}/admin/user_dtjdj/lists`,
      qs.stringify(params)
    );
  },
  addSeePoint(params) {
    return axios.post(
      `${base.bd}/admin/user_dtjdj/saveadd`,
      qs.stringify(params)
    );
  },
  editSeePoint(params) {
    return axios.post(
      `${base.bd}/admin/user_dtjdj/saveedit`,
      qs.stringify(params)
    );
  },
  delSeePonit(params) {
    return axios.post(`${base.bd}/admin/user_dtjdj/del`, qs.stringify(params));
  },
  //团队奖
  getTeamList(params) {
    return axios.post(
      `${base.bd}/admin/user_jttdj/lists`,
      qs.stringify(params)
    );
  },
  addTeam(params) {
    return axios.post(
      `${base.bd}/admin/user_jttdj/saveadd`,
      qs.stringify(params)
    );
  },
  editTeam(params) {
    return axios.post(
      `${base.bd}/admin/user_jttdj/saveedit`,
      qs.stringify(params)
    );
  },
  delTeam(params) {
    return axios.post(`${base.bd}/admin/user_jttdj/del`, qs.stringify(params));
  },
  //星球团队奖
  getStarList(params) {
    return axios.post(
      `${base.bd}/admin/user_xqtdj/lists`,
      qs.stringify(params)
    );
  },
  addStar(params) {
    return axios.post(
      `${base.bd}/admin/user_xqtdj/saveadd`,
      qs.stringify(params)
    );
  },
  editStar(params) {
    return axios.post(
      `${base.bd}/admin/user_xqtdj/saveedit`,
      qs.stringify(params)
    );
  },
  delStar(params) {
    return axios.post(`${base.bd}/admin/user_xqtdj/del`, qs.stringify(params));
  },
  //动态释放
  getreleaseList(params) {
    return axios.post(`${base.bd}/admin/user_dtsf/lists`, qs.stringify(params));
  },
  addRelease(params) {
    return axios.post(
      `${base.bd}/admin/user_dtsf/saveadd`,
      qs.stringify(params)
    );
  },
  delRelease(params) {
    return axios.post(`${base.bd}/admin/user_dtsf/del`, qs.stringify(params));
  },
  editRelease(params) {
    return axios.post(
      `${base.bd}/admin/user_dtsf/saveedit`,
      qs.stringify(params)
    );
  },
  //M星球
  getMstar(params) {
    return axios.post(`${base.bd}/admin/mxqsz/lists`, qs.stringify(params));
  },
  addMstar(params) {
    return axios.post(`${base.bd}/admin/mxqsz/saveadd`, qs.stringify(params));
  },
  editMstar(params) {
    return axios.post(`${base.bd}/admin/mxqsz/saveedit`, qs.stringify(params));
  },
  delMstar(params) {
    return axios.post(`${base.bd}/admin/mxqsz/del`, qs.stringify(params));
  },
  //攻打星球设置
  getAttackStar(params) {
    return axios.post(`${base.bd}/admin/gdxqsz/lists`, qs.stringify(params));
  },
  addAttackStar(params) {
    return axios.post(`${base.bd}/admin/gdxqsz/saveadd`, qs.stringify(params));
  },
  editAttackStar(params) {
    return axios.post(`${base.bd}/admin/gdxqsz/saveedit`, qs.stringify(params));
  },
  delAttackStar(params) {
    return axios.post(`${base.bd}/admin/gdxqsz/del`, qs.stringify(params));
  },//攻打星球结果
  getAttackResult(params){
    return axios.post(`${base.bd}/admin/xqgdjg/lists`, qs.stringify(params));
  },
  delAttackResult(params){
    return axios.post(`${base.bd}/admin/xqgdjg/del`, qs.stringify(params));
  },
  addAttackResult(params){
    return axios.post(`${base.bd}/admin/xqgdjg/saveadd`, qs.stringify(params));
  },
  editAttackResult(params){
    return axios.post(`${base.bd}/admin/xqgdjg/saveedit`, qs.stringify(params));
  },
  getVipOrder(params){
    return axios.post(`${base.bd}/admin/vip_order/lists`, qs.stringify(params));
  },
  getBuyStarOrder(params){
    return axios.post(`${base.bd}/admin/mxq_order/lists`, qs.stringify(params));
  },
  getAttackOrder(params){
    return axios.post(
      `${base.bd}/admin/gdxq_order/lists`,
      qs.stringify(params)
    );
  },
  getTransaction(params){
    return axios.post(`${base.bd}/admin/transaction/lists`, qs.stringify(params));
  },
  getRecord(params){
    return axios.post(`${base.bd}/admin/transaction_order/lists`, qs.stringify(params));
  },
  getWarshipList(params){
    return axios.post(`${base.bd}/admin/hjzj_order/lists`, qs.stringify(params));
  }
};
export default getOc;
